using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Objects;
using DAL;
using System.Collections.Generic;

public partial class Customer_UCControls_UCChuDe : System.Web.UI.UserControl
{

    public static string srtPath;
    public static List<DangKy> ListDangKy = new List<DangKy>();

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            PathImage();
            LoadChuDe();
        }

        
        ListDangKy = (List<DangKy>)Session["ListDangKy"];
        Session.Add("ListDangKy", ListDangKy);

    }

    public  string  PathImage()
    {
        return srtPath = "images/Generic Card/ChuDe/";
    }

    public bool IsEmpty(Object obj)
    {
        if (string.IsNullOrEmpty(obj.ToString()))
        {
            return false;
        }
        return true;
    }

    public void LoadChuDe()
    {
          
        List<ChuDe> ListChuDe = new List<ChuDe>();
        ListChuDe = BAL.BALChuDe.GetAllItem();

        dtlChuDe.DataSource = ListChuDe;
        dtlChuDe.DataBind();

        foreach (ChuDe Item in ListChuDe)
        {
            string srcPhoto = Request.QueryString["img"];
        }

    }

}

